package edu.nyu.hps.assignment9;

public class MyTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Dating game = new Dating(3);
		
		Candidate c1 = new Candidate(3);
		Candidate c2 = new Candidate(3);
		Candidate c3 = new Candidate(3);
		
		c1.attributes = new Double[3];
		c1.attributes[0] = 0.5;
		c1.attributes[1] = 0.5;
		c1.attributes[2] = 0.5;
		
		c2.attributes = new Double[3];
		c2.attributes[0] = 0.5;
		c2.attributes[1] = 0.0;
		c2.attributes[2] = 0.0;
		
		c3.attributes = new Double[3];
		c3.attributes[0] = 0.0;
		c3.attributes[1] = 0.5;
		c3.attributes[2] = 0.0;
		
		c1.score = 0;
		c2.score = -0.5;
		c3.score = 0.5;
		
		game.candidates.add(c1);
		game.candidates.add(c2);
		game.candidates.add(c3);
		
		game.setWeights(game.candidates);
		System.out.println("The weights after " + game.iterations + " iterations are: ");
		for(int i=0;i<game.weights.length;i++){
			System.out.println(i + ":" + game.weights[i] + ":");
		}

	}

}
